﻿using System;
using System.Collections.Generic;
using System.Text;

using System.Xml;

using SuperMapLib;

namespace SDB2DM.SpatialType
{
    class Spatial : ISpatial
    {
        #region 定数
        //public const string COMMENT = Utility.SPATIAL_COMMENT;
        public const string POINT_TAG = Utility.SPATIAL_POINT_TAG;
        public const string CURVE_TAG = Utility.SPATIAL_CURVE_TAG;
        public const string SURFACE_TAG = Utility.SPATIAL_SURFACE_TAG;
        #endregion

        public Spatial(XmlDocument XMLDoc, XmlNode objectNode, string strFeature, string spatialTag)
        {
            this.xmlDoc = XMLDoc;
            this.objectNode = objectNode;
            this.strFeature = strFeature;
            this.spatialTag = spatialTag;
        }

        private XmlDocument xmlDoc = null;
        protected XmlDocument XMLDoc
        {
            get
            {
                return this.xmlDoc;
            }
        }

        private XmlNode objectNode = null;
        protected XmlNode ObjectNode
        {
            get
            {
                return this.objectNode;
            }
        }

        private string strFeature = string.Empty;
        protected string STRFeature
        {
            get
            {
                return this.strFeature;
            }
        }

        #region ISpatial メンバ

        private string spatialTag = String.Empty;
        public string SpatialTag
        {
            get
            {
                return spatialTag;
            }
        }

        private string spatialId = String.Empty;
        public string SpatialID
        {
            get
            {
                return spatialId;
            }
            set
            {
                spatialId = value;
            }
        }

        public virtual void BuildPartForSpatial(soGeometry metry)
        { 
        }

        public virtual void BuildXMLForSpatialSchema(soGeometry metry)
        { 
        }

        #endregion
    }
}
